]> dgit.raspbian.org Git - gnome-shell.git/commit
swipeTracker: Try harder to start touchpad gestures with a direction
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 12 Feb 2021 11:13:57 +0000 (12:13 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 17 Feb 2021 13:06:11 +0000 (14:06 +0100)
commit504ca7d4c33f2138ae560b2f5b8f0e22630addeb
tree9baeaf6420778edf62e92bdc548340d267e52ed3
parente135f077fb3b716ef34e219b388d0911b0a7e5f3
swipeTracker: Try harder to start touchpad gestures with a direction

Make the touchpad gesture keep track of its state, and enter in a
rejected state if the swipe is happening in the wrong direction.

Effectively, this means touchpad gestures are locked on a single
direction, and horizontal+vertical swipeTrackers won't be handling
events at the same time.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1643>
js/ui/swipeTracker.js